package com.example.epidemicsurveillance.controller;

import com.example.epidemicsurveillance.response.ResponseResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName IndexController
 * @Author 朱云飞
 * @Date 2021/11/30 23:13
 * @Version 1.0
 **/
@Validated
@Slf4j
@RestController
@RequestMapping("/api/v1/user/index")
@CrossOrigin
@Api(tags = "前端初始化请求")
public class IndexController {

    @ApiOperation(value = "首页初始化")
    @GetMapping("/index")
    public ResponseResult index(){
        return ResponseResult.ok().data("result",1);
    }

}
